﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using ClassModel;
using ClassDAL;

namespace ClassBLL
{
    public class t_class_FindPassword_BLL
    {
        /// <summary>
        /// 插入修改密码的token
        /// </summary>
        /// <param name="token"></param>
        /// <returns></returns>
        public static int InsertToken(t_class_findpassword_token token)
        {
            return t_class_FindPassword_DAL.InsertToken(token);
        }

        /// <summary>
        ///  检查前token是否存在
        /// </summary>
        /// <param name="token"></param>
        /// <returns></returns>
        public static bool isTokenExists(string token)
        {
            return t_class_FindPassword_DAL.isTokenExists(token);
        }

         /// <summary>
        ///  删除无效的token
        /// </summary>
        /// <param name="token"></param>
        /// <returns></returns>
        public static bool deleteToken(string token)
        {
            return t_class_FindPassword_DAL.deleteToken(token);
        }
    }
}
